package sevensoft.gz031.demos.web.controller.advice;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import sevensoft.gz031.demos.web.response.R;

@RestControllerAdvice
public class ExceptionAdvice {

    @ExceptionHandler(Exception.class)
    public R<String> doException(Exception e){
        e.printStackTrace();
        return R.no("出错了");
    }
}
